home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Monkey Lander.swf / scripts / frame_15 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  2.0 KB  |  77 lines

  1. function removeUnusedBonuses()
  2. {
  3.    while(counter < 11)
  4.    {
  5.       _root["bonus" + counter].removeMovieClip();
  6.       counter++;
  7.    }
  8.    counter = 0;
  9. }
  10. function monkeyChatter()
  11. {
  12.    monkeySoundNumber = random(3);
  13.    if(monkeySoundNumber == 0)
  14.    {
  15.       sndMonkey1.start(0,0);
  16.    }
  17.    else if(monkeySoundNumber == 1)
  18.    {
  19.       sndMonkey2.start(0,0);
  20.    }
  21.    else if(monkeySoundNumber == 2)
  22.    {
  23.       sndMonkey3.start(0,0);
  24.    }
  25.    else
  26.    {
  27.       sndMonkey4.start(0,0);
  28.    }
  29. }
  30. monkeyGamesPlayed = 1;
  31. worldsDifference = 1100;
  32. sndCrash = new Sound();
  33. sndCrash.attachSound("sndCrash");
  34. sndWhip = new Sound();
  35. sndWhip.attachSound("sndWhip");
  36. sndPlatformAppear = new Sound();
  37. sndPlatformAppear.attachSound("sndPlatformAppear");
  38. sndZoomIn = new Sound();
  39. sndZoomIn.attachSound("sndZoomIn");
  40. sndZoomOut = new Sound();
  41. sndZoomOut.attachSound("sndZoomOut");
  42. sndHiscore = new Sound();
  43. sndHiscore.attachSound("sndHiscore");
  44. sndDrop = new Sound();
  45. sndDrop.attachSound("sndDrop");
  46. sndCrashHit = new Sound();
  47. sndCrashHit.attachSound("sndCrashHit");
  48. sndThrusters = new Sound();
  49. sndThrusters.attachSound("sndThrusters");
  50. sndBonus = new Sound();
  51. sndBonus.attachSound("sndBonus");
  52. sndLanded = new Sound();
  53. sndLanded.attachSound("sndLanded");
  54. sndMonkey1 = new Sound();
  55. sndMonkey1.attachSound("sndMonkey1");
  56. sndMonkey2 = new Sound();
  57. sndMonkey2.attachSound("sndMonkey2");
  58. sndMonkey3 = new Sound();
  59. sndMonkey3.attachSound("sndMonkey3");
  60. sndMonkey4 = new Sound();
  61. sndMonkey4.attachSound("sndMonkey4");
  62. sndGameOver = new Sound();
  63. sndGameOver.attachSound("sndGameOver");
  64. sndGameCompleted = new Sound();
  65. sndGameCompleted.attachSound("sndGameCompleted");
  66. sndMadeHiscore = new Sound();
  67. sndMadeHiscore.attachSound("sndMadeHiscore");
  68. sndBuzzer = new Sound();
  69. sndBuzzer.attachSound("sndBuzzer");
  70. sndOutOfCocofuel = new Sound();
  71. sndOutOfCocofuel.attachSound("sndOutOfCocofuel");
  72. sndTeleport = new Sound();
  73. sndTeleport.attachSound("sndTeleport");
  74. sndThud = new Sound();
  75. sndThud.attachSound("sndThud");
  76. gotoAndPlay(23);
  77.